﻿<Window x:Class="ContentFactory.CustomDataEditDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Toolkit2="clr-namespace:Xceed.Wpf.Toolkit.PropertyGrid;assembly=Xceed.Wpf.Toolkit"
        Height="480" Width="360" Closing="Window_Closing">
    <Window.Resources>
        <Style TargetType="{x:Type Image}">
            <Setter Property="Width" Value="16"/>
            <Setter Property="Height" Value="16"/>
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Opacity" Value="0.5"/>
                </Trigger>
            </Style.Triggers>
        </Style></Window.Resources>
    <Window.CommandBindings>
        <CommandBinding Command="Save" CanExecute="Command_Save_CanExecute" Executed="Command_Save_Executed"/>
        <CommandBinding Command="Close" CanExecute="Command_Close_CanExecute" Executed="Command_Close_Executed"/>
    </Window.CommandBindings>
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="{DynamicResource MainWindow_Menu_File}">
                <MenuItem Header="{DynamicResource MainWindow_Menu_File_Save}" Command="Save">
                    <MenuItem.Icon>
                        <Image Source="/ContentFactory;component/Images/Save.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Header="{DynamicResource MainWindow_Menu_File_Close}" Command="Close"/>
            </MenuItem>
        </Menu>
        <Toolkit2:PropertyGrid SelectedObject="{Binding }" PropertyValueChanged="PropertyGrid_PropertyValueChanged"/>
    </DockPanel>
</Window>
